﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    x:Class="RootfusBuiltinAddins.THist1D.THist1DUIConfig"
    Height="Auto" Width="Auto">
	<UserControl.Resources>
		<LinearGradientBrush x:Key="GentleChange" EndPoint="1,0.5" StartPoint="0,0.5">
			<GradientStop Color="#FF767373" Offset="0"/>
			<GradientStop Color="#FFFFFFFF" Offset="1"/>
		</LinearGradientBrush>
	</UserControl.Resources>
	<UserControl.Background>
		<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
			<GradientStop Color="#FF767373" Offset="0"/>
			<GradientStop Color="#FFFFFFFF" Offset="1"/>
		</LinearGradientBrush>
	</UserControl.Background>
	<StackPanel HorizontalAlignment="Left">
		<Label RenderTransformOrigin="0.5,0.5" Width="Auto" Height="Auto" Content="Histogram Settings" HorizontalAlignment="Stretch" FontStyle="Normal" HorizontalContentAlignment="Stretch">
			<Label.RenderTransform>
				<TransformGroup>
					<ScaleTransform ScaleX="1" ScaleY="1"/>
					<SkewTransform AngleX="0" AngleY="0"/>
					<RotateTransform Angle="0"/>
					<TranslateTransform X="0" Y="0"/>
				</TransformGroup>
			</Label.RenderTransform>
			<Label.Background>
				<LinearGradientBrush EndPoint="0.504,6.278" StartPoint="0.496,-5.278">
					<GradientStop Color="#FF767373" Offset="0"/>
					<GradientStop Color="#FFFFFFFF" Offset="1"/>
				</LinearGradientBrush>
			</Label.Background>
		</Label>
		<CheckBox Height="15.96" Content="Don't Show Title" IsChecked="{Binding Path=DontShowTitle}" Width="136.7" HorizontalAlignment="Left"/>
		<CheckBox Width="136.7" Height="15.96" Content="Don't Show Status Box" IsChecked="{Binding Path=DontShowStats}" HorizontalAlignment="Left"/>
		<CheckBox Width="136.7" Height="15.96" Content="Scale Integral To One" IsChecked="{Binding Path=ScaleIntegralToOne}" HorizontalAlignment="Left"/>
		<CheckBox Width="136.7" Height="15.96" Content="Auto Save Histogram" IsChecked="{Binding Path=AutoSaveHistAfterUpdate}" HorizontalAlignment="Left" />
        <DockPanel Width="136.7" Height="Auto" HorizontalAlignment="Left">
			<Label Width="Auto" Height="Auto" Content="X Title:"/>
			<TextBox Width="Auto" Height="Auto" Text="{Binding Path=XAxisTitle, UpdateSourceTrigger=PropertyChanged}"/>
		</DockPanel>
        <DockPanel Width="136.7" Height="Auto" HorizontalAlignment="Left">
            <Label Width="Auto" Height="Auto" Content="Y Title:"/>
            <TextBox Width="Auto" Height="Auto" Text="{Binding Path=YAxisTitle, UpdateSourceTrigger=PropertyChanged}"/>
        </DockPanel>
		<StackPanel HorizontalAlignment="Left" Width="Auto" Height="Auto" Orientation="Horizontal">
			<Label Width="Auto" Height="Auto" Content="YMin:"/>
			<TextBox Width="40" Height="25.96" Text="{Binding Path=YMin, Mode=Default, UpdateSourceTrigger=PropertyChanged}" TextWrapping="NoWrap"/>
			<Label Width="Auto" Height="Auto" Content="YMax:"/>
			<TextBox Width="40" Height="Auto" Text="{Binding Path=YMax, Mode=Default, UpdateSourceTrigger=PropertyChanged}" TextWrapping="NoWrap"/>
		</StackPanel>
        <DockPanel Width="136.7" Height="25.96" HorizontalAlignment="Left">
			<Label Content="Rebin:"/>
			<Slider x:Name="rebin" HorizontalAlignment="Stretch" Minimum="1" Width="Auto" DockPanel.Dock="Top" Value="{Binding Path=DesiredNumberOfBins}"/>
		</DockPanel>
		<DockPanel Height="21.96" HorizontalAlignment="Left">
			<Button Command="ApplicationCommands.Save" Padding="1" Content="Save"/>
			<Button Command="ApplicationCommands.SaveAs" Content="SaveAs"/>
		</DockPanel>
	</StackPanel>
</UserControl>
